//
//  MCUpdataModule.h
//  MCPublicModule
//
//  Created by Mirko on 16/8/25.
//  Copyright © 2016年 Mirko. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MCUploadInfoModel.h"

typedef enum : NSUInteger {
    kDefaultStatus = 0,
    kNeedForceUpdate = 1,
    kNeedUsualUpdate = 2,
    kNeedUpdateing,     // 已经与一个在更新状态未处理，block会回调此状态
    kNeedNotUpdate,
    kNetworkErr,
} EMCUpdateModuleStatus;

typedef void(^VersionCheckCompleteBlock)(EMCUpdateModuleStatus status, UIAlertView *alert, NSError *err);

@interface MCUpdateModule : NSObject
{
    EMCUpdateModuleStatus _status;
}

+(void) checkVersion:(MCUploadInfoModel *) info block:(VersionCheckCompleteBlock) block;

@end
